package com.runfig.figfactorybean;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {


//    @Autowired
//    private Dog dog;
//
//    public static void main(String[] args) {
//        System.out.println(dog);
//    }

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Dog.class);
        System.out.println(applicationContext.getBean(Dog.class).getName());
    }
}
